package a01threadcase1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-04-15
 * Time: 23:21
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        //重写run方法
        //书写线程要执行的代码
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"hello world!");
        }
    }
}
